import pytest
from selenium.webdriver.common.by import By
from selenium import webdriver
from time import sleep
from selenium.webdriver.support.ui import Select
@pytest.fixture
def fun1():
    print('1开始')
    yield
    print('1结束')
@pytest.fixture
def fun0():
    print("零开始")
    num = 100
    yield
    print("零结束")

@pytest.fixture
def fun3():
    print("我是3开始")
    num = 100
    yield
    print("我是3结束")
def test001(fun,fun1,fun3):
    # print(fun,fun1)
    print("hello")
@pytest.fixture
def get_driver():
    driver = webdriver.Chrome()
    driver.implicitly_wait(10)
    driver.get("http://192.168.1.37/ranzhi/www/sys/user-login.html")
    yield driver
    driver.quit()